#!/usr/bin/env python
# encoding: utf-8
"""
@summary: 测试字典中的字典和字典中的数组，以及数组中的字典
@author: hongxingfan
@since: 2014年8月25日    上午11:55:07
"""

if __name__ == '__main__':
    # hash中的hash
    hash_hash = {}
    
    hash_hash_1 = {"beijing":"北京", "shanghai":"上海"}
    hash_hash_2 = {"fanhongxing":"范红星", "biwenxiu":"毕文秀"}
    
    hash_hash["city"] = hash_hash_1
    hash_hash["name"] = hash_hash_2
    
    print(hash_hash.get("city").get("beijing"))
    print(hash_hash.get("name"))
    
    for (k, v) in hash_hash.items():
        for (k1, v1) in v.items():
            print("%s\t%s\t%s" % (k, k1, v1))
